#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main()
{
	clrscr();
	char a[21]="\0",ch;
	int i;
	cout<<"Enter password:";
	for(i=0;ch!='\r';i++)
	{
		ch=getch();
		if(ch=='\b')
		{
			a[--i]='\0';
			cout<<"\b\b";
		}
		else if(ch!='\r' && ch!=27)
		{
			a[i]=ch;
			cout<<'*';
		}
	}
	a[i-1]='\0';
	cout<<endl;
	int p=strcmpi(a,"vani");
	if(p==0)
	cout<<"Correct\n";
	else
	cout<<"Not correct\n";
	getch();
}
